FROM openjdk:8-jre-slim

ARG JAR_FILE

ADD ${JAR_FILE} app/app.jar

ENTRYPOINT ["sh","-c","java -jar /app/app.jar"]

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" >/etc/timezone